
package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.RestaurantStoreResource;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface RestaurantStoreResourceMapper {
    public RestaurantStoreResource selectRestaurantStoreResource(RestaurantStoreResource resource);

    public List<RestaurantStoreResource> selectRestaurantStoreResourceList(RestaurantStoreResource resource);

    public List<RestaurantStoreResource> selectRestaurantStoreResourceListQuery(RestaurantStoreResource resource);

    public List<RestaurantStoreResource> selectLatestResourceList(RestaurantStoreResource resource);

    public RestaurantStoreResource selectRestaurantStoreResourceById(Long id);

    public List<RestaurantStoreResource> selectRestaurantStoreResourceByIds(@Param("ids") List<Long> ids);

    public int insertRestaurantStoreResource(RestaurantStoreResource resource);

    public int updateRestaurantStoreResource(RestaurantStoreResource resource);

    public int deleteRestaurantStoreResourceById(Long id);

    public int deleteRestaurantStoreResourceByIds(List<Long> ids);

    //获取食材名称
    String getName(Long resourceId);

    //获取食材单价
    BigDecimal getPrice(Long resourceId);

    //获取食材单位
    String getUnit(Long resourceId);
}
